package com.jtlrm.ckd.mvp.model;

import com.base.sdk.base.model.BaseModel;
import com.base.sdk.base.net.LifeCycleEvent;
import com.google.gson.JsonObject;
import com.jtlrm.ckd.net.RetrofitUtil;

import io.reactivex.Observer;
import io.reactivex.subjects.PublishSubject;

public class LiangBiaoModel extends BaseModel {

    public void queryHuanZheList(int PageIndex, int PageSize, String patientId, String scale, Observer observer, PublishSubject<LifeCycleEvent> lifecycleSubject) {
        JsonObject jsonObject = new JsonObject();
        jsonObject.addProperty("PageIndex", PageIndex);
        jsonObject.addProperty("PageSize", PageSize);
        jsonObject.addProperty("patientId", patientId);
        jsonObject.addProperty("scale", scale);
        RetrofitUtil.composeToSubscribe(RetrofitUtil.getService().queryLiangBiaoList(jsonObject), observer, lifecycleSubject);
    }
}
